package com.puti.doctor.service.impl;

import java.util.List;

import com.puti.doctor.domian.HospitalDoctorInfo;
import com.puti.doctor.mapper.HospitalDoctorInfoMapper;
import com.puti.doctor.service.IHospitalDoctorInfoService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 医院-医生-个人信息 医院-医生-个人信息Service业务层处理
 * 
 * @author puti
 * @date 2021-04-20
 */
@Service
public class HospitalDoctorInfoServiceImpl implements IHospitalDoctorInfoService
{
    @Autowired
    private HospitalDoctorInfoMapper hospitalDoctorInfoMapper;

    /**
     * 查询医院-医生-个人信息 医院-医生-个人信息
     * 
     * @param doctorId 医院-医生-个人信息 医院-医生-个人信息ID
     * @return 医院-医生-个人信息 医院-医生-个人信息
     */
    @Override
    public HospitalDoctorInfo selectHospitalDoctorInfoById(Long doctorId)
    {
        return hospitalDoctorInfoMapper.selectHospitalDoctorInfoById(doctorId);
    }

    /**
     * 查询医院-医生-个人信息 医院-医生-个人信息列表
     * 
     * @param hospitalDoctorInfo 医院-医生-个人信息 医院-医生-个人信息
     * @return 医院-医生-个人信息 医院-医生-个人信息
     */
    @Override
    public List<HospitalDoctorInfo> selectHospitalDoctorInfoList(HospitalDoctorInfo hospitalDoctorInfo)
    {
        return hospitalDoctorInfoMapper.selectHospitalDoctorInfoList(hospitalDoctorInfo);
    }

    @Override
    public List<HospitalDoctorInfo> selectHospitalDoctorInfoListtiem(String doctorName) {
        return hospitalDoctorInfoMapper.selectHospitalDoctorInfoListtiem(doctorName);
    }

    @Override
    public List<HospitalDoctorInfo> selectHospitalDoctorInfoListname(String doctorName) {


        List<HospitalDoctorInfo> hospitalDoctorInfos = hospitalDoctorInfoMapper.selectHospitalDoctorInfoListname(doctorName);
        System.out.println(hospitalDoctorInfos);
        return hospitalDoctorInfos;
    }

    /**
     * 新增医院-医生-个人信息 医院-医生-个人信息
     * 
     * @param hospitalDoctorInfo 医院-医生-个人信息 医院-医生-个人信息
     * @return 结果
     */
    @Override
    public int insertHospitalDoctorInfo(HospitalDoctorInfo hospitalDoctorInfo)
    {
        return hospitalDoctorInfoMapper.insertHospitalDoctorInfo(hospitalDoctorInfo);
    }

    /**
     * 修改医院-医生-个人信息 医院-医生-个人信息
     * 
     * @param hospitalDoctorInfo 医院-医生-个人信息 医院-医生-个人信息
     * @return 结果
     */
    @Override
    public int updateHospitalDoctorInfo(HospitalDoctorInfo hospitalDoctorInfo)
    {
        return hospitalDoctorInfoMapper.updateHospitalDoctorInfo(hospitalDoctorInfo);
    }

    /**
     * 批量删除医院-医生-个人信息 医院-医生-个人信息
     * 
     * @param doctorIds 需要删除的医院-医生-个人信息 医院-医生-个人信息ID
     * @return 结果
     */
    @Override
    public int deleteHospitalDoctorInfoByIds(Long[] doctorIds)
    {
        return hospitalDoctorInfoMapper.deleteHospitalDoctorInfoByIds(doctorIds);
    }

    /**
     * 删除医院-医生-个人信息 医院-医生-个人信息信息
     * 
     * @param doctorId 医院-医生-个人信息 医院-医生-个人信息ID
     * @return 结果
     */
    @Override
    public int deleteHospitalDoctorInfoById(Long doctorId)
    {
        return hospitalDoctorInfoMapper.deleteHospitalDoctorInfoById(doctorId);
    }
}
